import request from '@/utils/request'

// 查询annualProject列表
export function listAnnualProject(query) {
    return request({
        url: '/training/annualProject/list',
        method: 'get',
        params: query
    })
}

// 查询annualProject详细
export function getAnnualProject(id) {
    return request({
        url: '/app/annualPlan/annualProject?naturalYearId=' + id,
        method: 'get'
    })
}

// 新增annualProject
export function addAnnualProject(data) {
    return request({
        url: '/training/annualProject',
        method: 'post',
        data: data
    })
}

// 修改annualProject
export function updateAnnualProject(data) {
    return request({
        url: '/training/annualProject',
        method: 'put',
        data: data
    })
}

// 删除annualProject
export function delAnnualProject(id) {
    return request({
        url: '/training/annualProject/' + id,
        method: 'delete'
    })
}

// 导出annualProject
export function exportAnnualProject(query) {
    return request({
        url: '/training/annualProject/export',
        method: 'get',
        params: query
    })
}